package com.ruoyi.system.service.impl;

import com.ruoyi.system.mapper.AgoniFacilityMapper;
import com.ruoyi.system.pojo.entity.Facility;
import com.ruoyi.system.service.IAgoniFacilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IAgoniFacilityServiceImpl implements IAgoniFacilityService {
    @Autowired
    private AgoniFacilityMapper agoniFacilityMapper;

    @Override
    public List<Facility> listFacilities() {
        return agoniFacilityMapper.listFacilities();
    }

    //TODO：添加设施，成功返回1，失败·返回0·
    @Override
    public int addFacility(Facility facility) {
        //TODO：添加设施
        //TODO：返回1
        //TODO：失败返回0
        return agoniFacilityMapper.addFacility(facility);
    }

}
